package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountOrderOperationRecord;
import com.ecoolex.discount.sales.entity.DiscountOrderOperationRecordExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountOrderOperationRecordMapper {
    long countByExample(DiscountOrderOperationRecordExample example);

    int deleteByExample(DiscountOrderOperationRecordExample example);

    int deleteByPrimaryKey(Integer recordId);

    int insert(DiscountOrderOperationRecord record);

    int insertSelective(@Param("record") DiscountOrderOperationRecord record, @Param("selective") DiscountOrderOperationRecord.Column ... selective);

    DiscountOrderOperationRecord selectOneByExample(DiscountOrderOperationRecordExample example);

    List<DiscountOrderOperationRecord> selectByExample(DiscountOrderOperationRecordExample example);

    DiscountOrderOperationRecord selectByPrimaryKey(Integer recordId);

    DiscountOrderOperationRecord selectByPrimaryKeyWithLogicalDelete(@Param("recordId") Integer recordId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountOrderOperationRecord record, @Param("example") DiscountOrderOperationRecordExample example, @Param("selective") DiscountOrderOperationRecord.Column ... selective);

    int updateByExample(@Param("record") DiscountOrderOperationRecord record, @Param("example") DiscountOrderOperationRecordExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountOrderOperationRecord record, @Param("selective") DiscountOrderOperationRecord.Column ... selective);

    int updateByPrimaryKey(DiscountOrderOperationRecord record);

    int batchInsert(@Param("list") List<DiscountOrderOperationRecord> list);

    int batchInsertSelective(@Param("list") List<DiscountOrderOperationRecord> list, @Param("selective") DiscountOrderOperationRecord.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountOrderOperationRecordExample example);

    int logicalDeleteByPrimaryKey(Integer recordId);
}